package com.samphanie.auiu.common.dto;

import lombok.*;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
@Data
@With
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserDto implements Serializable {
    private static final long serialVersionUID = -937816877433199485L;

    private Long id;
    private String username;
    private String nickname;
    private String avatar;
    private String mobile;
    private String email;
    private boolean enabled;
    private boolean usingMfa;
    private Set<RoleDto> roles;

    private String realName;
    private Integer gender;
    private Date birthday;
    private String source;
    private String city;
    /*** 备注信息 */
    private String note;
    /*** 最后登录时间 */
    private Date loginTime;
    /*** 最后登录IP */
    private String ip;
    private String registerIp;
    private String registerAddress;

    private boolean accountNonExpired;
    private boolean accountNonLocked;
    private boolean credentialsNonExpired;

}
